package coml.jiyun.hp.jiaohuafei.presenter;


import coml.jiyun.hp.jiaohuafei.bean.ExchangeBean;
import coml.jiyun.hp.jiaohuafei.iview.IView;
import coml.jiyun.hp.jiaohuafei.model.Model;
import coml.jiyun.hp.jiaohuafei.net.ResultCallback;

public class Presenter {
    private IView iView;
    private final Model model;

    public Presenter(IView iView) {
        this.iView = iView;
        model = new Model();
    }

    public void getData() {
        model.getDataM(new ResultCallback() {
            @Override
            public void ok(ExchangeBean t) {
                iView.ok(t);
            }

            @Override
            public void no(String msg) {
                iView.no(msg);
            }
        });
    }
}
